package com.persion.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 资讯(FrontNews)表实体类
 *
 * @author WangFK
 * @since 2024-01-25 19:01:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "FrontNews对象", description = "资讯")
@TableName("front_news")
public class FrontNews implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "news_id", type = IdType.AUTO)
    private Long newsId;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String newsTitle;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介")
    private String newsIntro;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String newsRemark;

    /**
     * 封面
     */
    @ApiModelProperty(value = "封面")
    private String newsPhoto;

    /**
     * 发布人
     */
    @ApiModelProperty(value = "发布人")
    private String newsCreate;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间")
    private Date createTime;

    /**
     * 浏览量
     */
    @ApiModelProperty(value = "浏览量")
    private String newsCount;

    /**
     * 所属分类id
     */
    @ApiModelProperty(value = "所属分类id")
    private Long categoryId;

    /**
     * 分类名
     */
    @ApiModelProperty(value = "分类名")
    private String categoryName;

    /**
     * 逻辑删除 0 存在 2删除
     */
    @TableLogic
    @ApiModelProperty(value = "逻辑删除 0 存在 2删除")
    private String delFlag;

    /**
     * 状态 0正常 1停用
     */
    @ApiModelProperty(value = "状态 0正常 1停用")
    private String opStatus;

}

